// Test case distinction.

--- math-cases paged ---
$ f(x, y) := cases(
  1 quad &"if" (x dot y)/2 <= 0,
  2 &"if" x divides 2,
  3 &"if" x in NN,
  4 &"else",
) $

--- math-cases-gap paged ---
#set math.cases(gap: 1em)
$ x = cases(1, 2) $

--- math-cases-delim paged ---
#set math.cases(delim: sym.chevron.l)
$ cases(a, b, c) $

--- math-cases-linebreaks paged ---
// Warning: 40-49 linebreaks are ignored in branches
// Hint: 40-49 use commas instead to separate each line
$ cases(a, b, c) cases(reverse: #true, a \ b \ c) $

--- math-cases-delim-class paged ---
// Test that delimiters have opening and closing math class.
$ 2cases(a, reverse: #true, delim: bar.v) 2 $
$ 2 cases(a, delim: bar.v)2 $
